package com.wbao.dianniu.ui;

import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.wbao.dianniu.R;
import com.wbao.dianniu.logical.Const;
import com.wbao.dianniu.logical.GlobalContext;

/**
 * Created by Administrator on 2017/8/9.
 */

public class ScanResultActivity extends BaseActivity {

    TextView tvResult;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentLayout(R.layout.activity_scan_result, LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT);
        setTitleName(getResources().getString(R.string.sacn_result));
        tvResult = findViewById(R.id.scan_tv);
        String result = getIntent().getStringExtra(Const.NICE_NAME_INTENT);
        if(null != result){
            tvResult.setText(result);
        }

    }
}
